FROM openshift/golang-builder@sha256:4820580c3368f320581eb9e32cf97aeec179a86c5749753a14ed76410a293d83
ENV __doozer=update BUILD_RELEASE=202202160023.p0.g3448830.assembly.stream BUILD_VERSION=v4.10.0 OS_GIT_MAJOR=4 OS_GIT_MINOR=10 OS_GIT_PATCH=0 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.10.0-202202160023.p0.g3448830.assembly.stream SOURCE_GIT_TREE_STATE=clean 
ENV __doozer=merge OS_GIT_COMMIT=3448830 OS_GIT_VERSION=4.10.0-202202160023.p0.g3448830.assembly.stream-3448830 SOURCE_DATE_EPOCH=1641227536 SOURCE_GIT_COMMIT=3448830c086f092863ce701cccc6b627bca5b827 SOURCE_GIT_TAG=3448830c SOURCE_GIT_URL=https://github.com/openshift/csi-driver-nfs 
COPY . /go/src/github.com/openshift/csi-driver-nfs
RUN cd /go/src/github.com/openshift/csi-driver-nfs && \
    go build -o /go/src/github.com/openshift/csi-driver-nfs/nfsplugin cmd/nfsplugin/main.go

FROM openshift/ose-base:v4.10.0.20220216.010142
ENV __doozer=update BUILD_RELEASE=202202160023.p0.g3448830.assembly.stream BUILD_VERSION=v4.10.0 OS_GIT_MAJOR=4 OS_GIT_MINOR=10 OS_GIT_PATCH=0 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.10.0-202202160023.p0.g3448830.assembly.stream SOURCE_GIT_TREE_STATE=clean 
ENV __doozer=merge OS_GIT_COMMIT=3448830 OS_GIT_VERSION=4.10.0-202202160023.p0.g3448830.assembly.stream-3448830 SOURCE_DATE_EPOCH=1641227536 SOURCE_GIT_COMMIT=3448830c086f092863ce701cccc6b627bca5b827 SOURCE_GIT_TAG=3448830c SOURCE_GIT_URL=https://github.com/openshift/csi-driver-nfs 

COPY --from=0 /go/src/github.com/openshift/csi-driver-nfs/nfsplugin /usr/bin/

RUN yum -y install nfs-utils && yum -y install jq && yum clean all

ENTRYPOINT ["/usr/bin/nfsplugin"]

LABEL \
        name="openshift/ose-csi-driver-nfs" \
        com.redhat.component="csi-driver-nfs-container" \
        io.openshift.maintainer.product="OpenShift Container Platform" \
        io.openshift.maintainer.component="Installer" \
        io.openshift.maintainer.subcomponent="OpenShift on OpenStack" \
        release="202202160023.p0.g3448830.assembly.stream" \
        io.openshift.build.commit.id="3448830c086f092863ce701cccc6b627bca5b827" \
        io.openshift.build.source-location="https://github.com/openshift/csi-driver-nfs" \
        io.openshift.build.commit.url="https://github.com/openshift/csi-driver-nfs/commit/3448830c086f092863ce701cccc6b627bca5b827" \
        version="v4.10.0"

